<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title>导航菜单</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<script language="javascript" src="${pageContext.request.contextPath}/script/jquery.js"></script>
    <script language="javascript" src="${pageContext.request.contextPath}/script/pageCommon.js" charset="utf-8"></script>
    <script language="javascript" src="${pageContext.request.contextPath}/script/PageUtils.js" charset="utf-8"></script>
    <script language="javascript" src="${pageContext.request.contextPath}/script/DemoData.js" charset="utf-8"></script>
	<script language="javascript" src="${pageContext.request.contextPath}/script/DataShowManager.js" charset="utf-8"></script>
    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/style/blue/menu.css" />
    <script language="JavaScript" src="${pageContext.request.contextPath}/script/menu.js"></script>
    <script type="text/javascript"> 
    </script>
</head>
<body style="margin: 0">
<div id="Menu">


<div id="Menu">
	<c:forEach items="${menuList }" var="e1">
	    <ul id="MenuUl">
	    <c:if test ="${e1.menuParent==0 or e1.menuParent==null  }">
	    	<li class="level1">
	    		<div onClick="menuClick(this)" class="level1Style"><img src="${pageContext.request.contextPath}${'/'}${e1.menuIcon}" class="Icon" />${e1.menuName }</div>
	    		<ul style="display: none;" class="MenuLevel2">
	    		 	<c:forEach items="${menuList }" var="e2">
	    		 	    <c:if test="${e2.menuParent==e1.menuId  }">
				    		 <li class="level2">
			                    <div class="level2Style"><img src="${pageContext.request.contextPath}${'/'}${e2.menuIcon}" />
			                    	<a target="right" href="${pageContext.request.contextPath}${'/'}${e2.menuUrl }">
			                    		${e2.menuName }
			                    	</a>
			                    </div>
			                </li>
			            </c:if>
	    		 
	    		 	</c:forEach>
	    		 </ul>
	    	</li>
	    </c:if >
	    </ul>
	    </c:forEach>
</div>




<%-- <div id="Menu">
    <ul id="MenuUl">
	    <c:if test="${menuPoList!=null&&menuPoList.size()>0 }">
	    	<c:forEach items="${menuPoList }" var="menu1">
	    		<c:if test="${menu1.menuParent==0 or menu1.menuParent==null  }">
	    			<li class="level1">
			            <div onClick="menuClick(this)" class="level1Style"><img src="${pageContext.request.contextPath}${'/'}${e1.menuIcon}" class="Icon" />${menu1.menuName }</div>
			            <c:forEach items="${menuPoList }" var="menu2" >
			            	<c:if test="${menu2.menuParent==menu1.menuId  }">
			            		<ul style="display: none;" class="MenuLevel2">
					                <li class="level2">
					                    <div class="level2Style"><img src="${pageContext.request.contextPath}${'/'}${e1.menuIcon}f" /><a target="right" href="${pageContext.request.contextPath}/${menu2.menuUrl }"> ${menu2.menuName }</a></div>
					                </li>
					            </ul>
			            	</c:if>
			            </c:forEach>
			        </li>
	    		</c:if>
	    	</c:forEach>
	    </c:if>
    </ul>
</div> --%>
	
</div>
</body>
</html>
